//express_demo.js 文件
const express = require('express');
const app = express();
app.use(express.json())

app.use('/', express.static('public'));


app.use('/upload', require('./router/UploadController'));
app.use('/file', require('./router/FileController'));
app.use('/wx', require('./router/WechatController'));

const server = app.listen(8078, function () {
    const host = server.address().address;
    const port = server.address().port;
    console.log("应用实例，访问地址为 http://%s:%s", host, port)
});
